package api.app;

import java.io.IOException;

import org.json.JSONException;
import org.json.JSONObject;

import common.Host;
import common.Request;

/**
 * 实现帮忙医APP注册获取验证码接口GetVerificationCode调用
 * @author WuZF
 *
 */
public class GetVerificationCode
{
	/**
	 * 实现帮忙医APP注册获取验证码接口GetVerificationCode调用
	 * @param account 用户名
	 * @return
	 * @throws JSONException
	 * @throws IOException
	 */
    public static String post(String account) throws JSONException, IOException{
    	//拼接口地址
    	String url = Host.getAddress()+"/APIAccount/GetVerificationcode";
    	
    	JSONObject parmsTemp = new JSONObject();
    	parmsTemp.put("UserAccount", account);   //参数赋值
    	
    	String result = Request.post(url, parmsTemp);//调用接口并放回接口参数
    	return result;
    }
    
}
